<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 13-6-4
  Time: 下午3:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>学生宿舍管理</title>
<%--    <meta http-equiv="refresh" content='0;url=FileDownload!show.action'>--%>
    <link type="text/css" rel="stylesheet" href="css/index.css"/>
    <script type="text/javascript" src="js/ZoomPic.js"></script>
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/menu.js"></script>
    <script src='<%=basePath%>dwr/util.js' type="text/javascript"></script>
    <script src='<%=basePath%>dwr/engine.js' type="text/javascript"></script>
    <script src='<%=basePath%>dwr/interface/newsService.js' type="text/javascript"></script>
    <script type="text/javascript" src="js/jquery-1.4.2.js"></script>
    <script type="text/javascript" src="js/slider.js"></script>
    <link href="css/common.css" rel="stylesheet" type="text/css" />
    <link href="css/indexpicture.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/jquery.messager.js"></script>

    <script type="text/javascript">
        $(document).ready(function () {
            newsService.findNews('${person.userId}', getResult);
        });

        function getResult(news) {
            if (news != null) {
                var strs = new Array();
                strs = news.link.split("\?");

                //构造跳转form
                var act = "<form action='" + strs[0] + "' method='post'>" + "<input type='hidden' name='id' value='" + strs[1] + "'/>"
                        + "<input type='hidden' name='newsId' value='" + news.id + "'/>"
                        + "<span id = 'ns' >" + news.content + "</span ><input type = 'submit'  value = '查看' /></form >";

                //设置高度
                $.messager.lays(250, 75);
                //设置动画
                $.messager.anim('fade', 1000);
                //设置内容
                $.messager.show("新消息", act, 0);
            }
        }
    </script>

</head>
<body>
<%--<div id="head_line"></div>
<div id="head"><a href="index.jsp" style="border: none;"><img src="../../img/logo.gif" style="border: none;"/></a>

    <div id="login">
        <c:if test="#session.person == null">
                <span style="font-size:14px; font-family:'微软雅黑'; color: #ffffff; position: absolute;top: 3px;right: 22%;">
                    &nbsp&nbsp你好！&nbsp&nbsp
                      <a href="login.jsp">登陆</a>
                </span>

        </c:if>
        &lt;%&ndash;<a href="###" id="regist">注册</a>&ndash;%&gt;
        <c:if test="#session.person != null">
                <span style="font-family:'微软雅黑'; color: #ffffff; position: absolute;top: 3px;right: 10%;">欢迎 ${person.userName}&nbsp
                <a href="Login!loginOut.action" id="regist">退出</a>
                </span>
        </c:if>
    </div>
</div>--%>
<%--<div id="left">
    ${session.person.powerGroup.powerGroup}
    <ul>
        <li>
            <a href="/page/file/findStudent.jsp"
               style="border-left:1px #ffffff solid; border-right: 1px #ffffff solid;">新生查询</a>
        </li>
        <c:if test="#session.person.powerGroup.powerGroup == '学生宿舍' || #session.person.powerGroup.powerGroup == '管理员'">
            <li>
                <a href="/page/dailyManagement/dailyIndex.jsp"
                   style=" border-right: 1px #ffffff solid;">日常管理</a>
            </li>
        </c:if>
        <c:if test="#session.person.powerGroup.powerGroup == '维修师傅' || #session.person.powerGroup.powerGroup == '管理员'">
            <li>
                <a href="/page/searchManagement/searchIndex.jsp"
                   style=" border-right: 1px #ffffff solid;">检索管理</a>
            </li>
        </c:if>
        <c:if test="#session.person.powerGroup.powerGroup == '宿舍管理部' || #session.person.powerGroup.powerGroup == '管理员'">
            <li>
                <a href="/page/expenseManagement/expenseIndex.jsp"
                   style=" border-right: 1px #ffffff solid;">费用管理</a>
            </li>
            <li>
                <a href="/page/dormitoryManagement/dormitoryIndex.jsp"
                   style=" border-right: 1px #ffffff solid;">宿舍管理</a>
            </li>
            <li>
                <a href="/page/mailboxManagement/mailboxIndex.jsp"
                   style=" border-right: 1px #ffffff solid;">信箱管理</a>
            </li>
            <li>
                <a href="/page/maintainingManagement/maintainingIndex.jsp"
                   style="border-left:1px #ffffff solid; border-right: 1px #ffffff solid;">报修管理</a>
            </li>
            <li>
                <a href="FileDownload!getFileList.action"
                   style="border-left:1px #ffffff solid; border-right: 1px #ffffff solid;">模板管理</a>
            </li>
        </c:if>
        <c:if test="#session.person.powerGroup.powerGroup == '管理员'">
            <li>
                <a href="FileDownload!getFileList.action"
                   style="border-left:1px #ffffff solid; border-right: 1px #ffffff solid;">模板管理</a>
            </li>
            <li>
                <a href="Information!fileList.action"
                   style="border-left:1px #ffffff solid; border-right: 1px #ffffff solid;">通知管理</a>
            </li>
            <li>
                <a href="/page/file/db.jsp"
                   style="border-left:1px #ffffff solid; border-right: 1px #ffffff solid;">数据库管理</a>
            </li>
        </c:if>
    </ul>
</div>--%>
<%@ include file="/page/share/menu.jsp" %>
<div id="picture">
<div class="content_right">
    <div class="ad" >
        <ul class="slider" >
            <li><a href="#"><img src="img/buttom_0.jpg"/></a></li>
            <li><a href="#"><img src="img/buttom_1.jpg"/></a></li>
            <li><a href="#"><img src="img/buttom_2.jpg"/></a></li>
            <li><a href="3"><img src="img/buttom_3.jpg"/></a></li>
        </ul>
        <ul class="num" >
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
        </ul>
    </div>
</div>
</div>
<div id="right">

</div>
<div>
    <table align="center" style="margin: 40px auto 20px;background: #114a93;opacity:0.9;font-family: '微软雅黑',serif;color: linen;width:
    800px;text-align: center">
        <tr>
            <td>通知文件</td>
            <td>上传时间</td>
        </tr>
        <s:iterator value="information" status="d">
            <s:set name="index" value="#d.getIndex()"/>
            <tr style="border: 1px #757575 solid">
                <td>
                    <s:property value="information.get(#index).get(1)"/>
                </td>
                <td>
                    <s:property value="information.get(#index).get(0)"/>
                </td>
            </tr>
        </s:iterator>
    </table>
</div>

<div id="footer">
    <p style="text-align: center;color: #757575;padding: 20px 0px 0px 0px; font:12px;">Copyright © 2010-2013 蓝天白云团队
        版权所有</p>
</div>
</body>
</html>
